package com.qdlc.p2p.biz.executer.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.biz.service.RateInterestService;
import com.qdlc.p2p.common.constant.Global;
import com.qdlc.p2p.common.util.BeanUtil;

/**
 * 满标复审不通过，或者流标时，处理
 * 该标已经使用加息券投标的相关业务
 *
 * @author wjx
 * @version 2.0
 * @date 2015年4月25日 上午10:10:53
 */
@Service
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class UpRateFullFailExecuter extends BaseExecuter {

    @Resource
    private RateInterestService rateInterestService;

    @Override
    public void extend() {
        long borrowId = (Long) Global.getTransfer().get("borrowId");
        rateInterestService = (RateInterestService) BeanUtil.getBean("rateInterestService");
        rateInterestService.borrowFailDoRate(borrowId);
    }
}
